﻿using KayakMes.ProductionPlan.Application;
using KayakMes.ProductionPlan.Domain.Entities;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace KayakMes.ProductionPlan.API.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class ProductionPlanController : ControllerBase
    {
        private readonly IProductionPlan<TextModel> plan;

        public ProductionPlanController(IProductionPlan<TextModel> plan)
        {
            this.plan = plan;
        }
        [HttpPost]
        public int Add(TextModel t) 
        {
            return plan.Add(t);
        }
    }
}
